package br.inf.ufrgs.br.usixml4cdc.rendering;

import org.w3c.dom.Element;

import br.inf.ufrgs.usixml4cdc.exceptions.ParsingErrorException;
import br.inf.ufrgs.usixml4cdc.exceptions.RenderingErrorException;

public abstract class UsiXMLInterfaceRenderer {
	
	public ResourceRetriever resourceRetriever = null;
	
	public abstract void renderInterface(Element cuiModel)
		throws RenderingErrorException, ParsingErrorException;
	
	public void createUserInterface(Element cuiModel, Element contextModel, Element resourceModel) 
		throws RenderingErrorException, ParsingErrorException{
		
		this.resourceRetriever = new ResourceRetriever(resourceModel);
		
		this.renderInterface(cuiModel);
		
		
	}

}
